<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <title>Docs For Class Madoqua_Exception_Abstract</title>
    <link rel="stylesheet" type="text/css" href="../media/style.css" />
    <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
  </head>
  <body>
  
    <h1>Madoqua :: Docs For Class Madoqua_Exception_Abstract</h1>

    <table width="100%">
      <tr valign="top">
        <td class="menu">
                                <div class="package">
              <div id="todolist">
                <p><a href="../todolist.html">Todo List</a></p>
              </div>
            </div>
                    <h2>Packages:</h2>
          <div class="package">
            <ul>
                              <li>
                  <a href="../classtrees_default.html">default</a>
                </li>
                              <li>
                  <a href="../classtrees_Application.html">Application</a>
                </li>
                              <li>
                  <a href="../classtrees_Cache.html">Cache</a>
                </li>
                              <li>
                  <a href="../classtrees_Controller.html">Controller</a>
                </li>
                              <li>
                  <a href="../classtrees_Db.html">Db</a>
                </li>
                              <li>
                  <a href="../classtrees_Filter.html">Filter</a>
                </li>
                              <li>
                  <a href="../classtrees_Form.html">Form</a>
                </li>
                              <li>
                  <a href="../classtrees_Install.html">Install</a>
                </li>
                              <li>
                  <a href="../classtrees_Loader.html">Loader</a>
                </li>
                              <li>
                  <a href="../classtrees_Madoqua_Exception.html">Madoqua_Exception</a>
                </li>
                              <li>
                  <a href="../classtrees_Madoqua_Observer.html">Madoqua_Observer</a>
                </li>
                              <li>
                  <a href="../classtrees_Madoqua_Plugin.html">Madoqua_Plugin</a>
                </li>
                              <li>
                  <a href="../classtrees_Madoqua_View.html">Madoqua_View</a>
                </li>
                              <li>
                  <a href="../classtrees_Module.html">Module</a>
                </li>
                              <li>
                  <a href="../classtrees_Naneau_Plugin.html">Naneau_Plugin</a>
                </li>
                              <li>
                  <a href="../classtrees_Redirector.html">Redirector</a>
                </li>
                              <li>
                  <a href="../classtrees_Search.html">Search</a>
                </li>
                              <li>
                  <a href="../classtrees_Validate.html">Validate</a>
                </li>
                              <li>
                  <a href="../classtrees_View.html">View</a>
                </li>
                          </ul>
          </div>
                                                                    <h2>Classes:</h2>
                <ul>
		    		<li><a href="../Madoqua_Exception/Madoqua_Exception.html">Madoqua_Exception</a></li>    	    		<li><a href="../Madoqua_Exception/Madoqua_Exception_Abstract.html">Madoqua_Exception_Abstract</a></li>    	    		<li><a href="../Madoqua_Exception/Madoqua_Exception_Log.html">Madoqua_Exception_Log</a></li>    	    		<li><a href="../Madoqua_Exception/Madoqua_Install_Exception.html">Madoqua_Install_Exception</a></li>    	  </ul>
                              </td>
        <td>
          <table style="width:750px;" cellpadding="10" cellspacing="10px">
            <tr>
              <td valign="top">
                                                                  <h2>Madoqua_Exception::Madoqua_Exception_Abstract</h2>
                                <div class="menu">
          
                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                      [ <a href="../index.html">Index</a> ]
                      [ <a href="../classtrees_Madoqua_Exception.html">Madoqua_Exception classes</a> ]
            [ <a href="../elementindex_Madoqua_Exception.html">Madoqua_Exception elements</a> ]
                    [ <a href="../elementindex.html">All elements</a> ]
          [ <a href="../errors.html">Errors</a> ]
                </div>
<a name="sec-description"></a>
<h2>Class Madoqua_Exception_Abstract</h2>

<p>Abstract exception class</p>		
  <h2>Implements interfaces:</h2>
  <ul>
    <li><a href="../Madoqua_Observer/Subject_Interface/Madoqua_Observer_Subject_Interface_Exception.html">Madoqua_Observer_Subject_Interface_Exception</a></li>  </ul>


<pre>Exception
   |
   --Madoqua_Exception_Abstract</pre>


  <strong>Author(s):</strong>
  <ul>
                  <li>Graham Anderson - graham@andtech.eu</li>
                                </ul>

  <table>
    	      	  		<tr>
		  <td>
		    <strong>Copyright:</strong>&nbsp;&nbsp;
		  </td>
		  <td>Copyright (c) 2008</td>
		</tr>
	        </table>

  <a name="sec-descendants"></a>
  <h2>Descendants</h2>
  <table class="detail">
    <thead>
      <tr>
        <th>Child Class</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
              <tr>
          <td><a href="../Madoqua_Exception/Madoqua_Exception.html">Madoqua_Exception</a></td>          <td>
                          Madoqua exception handling superclass
                      </td>
        </tr>
          </tbody>
  </table>

  <a name="sec-const-summary"></a>
  <h2>Constants</h2>
  <table class="summary">
          <tr>
        <td class="right">
          <a name="const-CRITICAL" id=""></a>
          <code>
            <a href="#const-CRITICAL" title="details" class="const-name-summary">CRITICAL</a>
             =  1
          </code>
        </td>
        <td>
          Critical condition, needs immediate attention, log this                  </td>
      </tr>
          <tr>
        <td class="right">
          <a name="const-DEBUG" id=""></a>
          <code>
            <a href="#const-DEBUG" title="details" class="const-name-summary">DEBUG</a>
             =  6
          </code>
        </td>
        <td>
          For verbose exception/error handling, do NOT explicitly set this for  exceptions. If app state is toggled to 'development' in the config, all  madoqua exceptions will be set to this value.                  </td>
      </tr>
          <tr>
        <td class="right">
          <a name="const-ERROR" id=""></a>
          <code>
            <a href="#const-ERROR" title="details" class="const-name-summary">ERROR</a>
             =  2
          </code>
        </td>
        <td>
          Fatal application error, non recoverable, log this                  </td>
      </tr>
          <tr>
        <td class="right">
          <a name="const-NOTICE" id=""></a>
          <code>
            <a href="#const-NOTICE" title="details" class="const-name-summary">NOTICE</a>
             =  4
          </code>
        </td>
        <td>
          Normal but significant condition, log @ dev discretion                  </td>
      </tr>
          <tr>
        <td class="right">
          <a name="const-USER" id=""></a>
          <code>
            <a href="#const-USER" title="details" class="const-name-summary">USER</a>
             =  5
          </code>
        </td>
        <td>
          User should be notified there was a problem                  </td>
      </tr>
          <tr>
        <td class="right">
          <a name="const-WARNING" id=""></a>
          <code>
            <a href="#const-WARNING" title="details" class="const-name-summary">WARNING</a>
             =  3
          </code>
        </td>
        <td>
          Undesirable but recoverable condition, log this                  </td>
      </tr>
      </table>



  <a name="sec-var-summary"></a>
  <h2>Member Variables</h2>
  <table class="summary">
                                <tr>
          <td class="right">
            <em>protected</em>            <em>array</em>          </td>
          <td>
            <code>
              $_handlers
               = <span class="var-default">array()</span>            </code>
            <br /><div style="margin-left: 20px">Registered exception observers</div>                      </td>
        </tr>
            </table>

  <h2>Inherited Member Variables</h2>
  <table class="summary">
          <thead>
        <tr>
          <th colspan="2">
	        From <span class="classname">Exception (Internal Class)</span>         
          </th>
        </tr>
      </thead>
      <tbody>
                  <tr>
            <td class="right">
              <em>protected</em>                          </td>
            <td>
              <code>$code</code>
              
            </td>
          </tr>
                  <tr>
            <td class="right">
              <em>protected</em>                          </td>
            <td>
              <code>$file</code>
              
            </td>
          </tr>
                  <tr>
            <td class="right">
              <em>protected</em>                          </td>
            <td>
              <code>$line</code>
              
            </td>
          </tr>
                  <tr>
            <td class="right">
              <em>protected</em>                          </td>
            <td>
              <code>$message</code>
              
            </td>
          </tr>
                  <tr>
            <td class="right">
              <em>private</em>                          </td>
            <td>
              <code>$string</code>
              
            </td>
          </tr>
                  <tr>
            <td class="right">
              <em>private</em>                          </td>
            <td>
              <code>$trace</code>
              
            </td>
          </tr>
              </tbody>
      </table>

  <a name="sec-method-summary"></a>
  <h2>Method Summary</h2>
  <table class="summary">
                                                                        <tr>
          <td class="right">
            <em>public</em>                        <em>bool</em>          </td>
          <td>
            <code>
              <a href="#delete"><b>delete</b></a>(
                                                                                    $observer
                                                    ,                   [                  $name
                   = null]                               )
            </code>
            <br /><div style="margin-left: 20px">Remove an exception handler</div>          </td>
        </tr>
                        <tr>
          <td class="right">
            <em>public</em>                        <em>Madoqua_Exception_Abstract</em>          </td>
          <td>
            <code>
              <a href="#__construct"><b>__construct</b></a>(
                                                                                    $message
                                                    ,                   [                  $code
                   = 0]                               )
            </code>
            <br /><div style="margin-left: 20px">Set the code &amp; message</div>          </td>
        </tr>
                        <tr>
          <td class="right">
            <em>public</em>                        <em>void</em>          </td>
          <td>
            <code>
              <a href="#handle"><b>handle</b></a>(
               )
            </code>
            <br /><div style="margin-left: 20px">Proxy to notify</div>          </td>
        </tr>
                        <tr>
          <td class="right">
            <em>public</em>                        <em>void</em>          </td>
          <td>
            <code>
              <a href="#notify"><b>notify</b></a>(
               )
            </code>
            <br /><div style="margin-left: 20px">Push the exception out for handling</div>          </td>
        </tr>
                        <tr>
          <td class="right">
            <em>public</em>                        <em>mixed|<a href="../Madoqua_Exception/Madoqua_Exception_Abstract.html">Madoqua_Exception_Abstract</a>|false</em>          </td>
          <td>
            <code>
              <a href="#register"><b>register</b></a>(
                                                                                    $observer
                                                    ,                   [                  $name
                   = null]                               )
            </code>
            <br /><div style="margin-left: 20px">Register an exception handler</div>          </td>
        </tr>
            </table>

  <h2>Inherited Methods</h2>
  <table class="summary">
          <thead>
        <tr>
          <th colspan="2">
            From <span class="classname">Exception (Internal Class)</span>
          </th>
        </tr>
      </thead>
      <tbody>
                  <tr>
            <td class="right">
              <em>public</em>                                          <em>Exception</em>            </td>
            <td>
              <code><b>constructor __construct ( [$message = ], [$code = ] )</b></code>
                                        </td>
          </tr>
                  <tr>
            <td class="right">
              <em>public</em>                                          <em>void</em>            </td>
            <td>
              <code><b>getCode (  )</b></code>
                                        </td>
          </tr>
                  <tr>
            <td class="right">
              <em>public</em>                                          <em>void</em>            </td>
            <td>
              <code><b>getFile (  )</b></code>
                                        </td>
          </tr>
                  <tr>
            <td class="right">
              <em>public</em>                                          <em>void</em>            </td>
            <td>
              <code><b>getLine (  )</b></code>
                                        </td>
          </tr>
                  <tr>
            <td class="right">
              <em>public</em>                                          <em>void</em>            </td>
            <td>
              <code><b>getMessage (  )</b></code>
                                        </td>
          </tr>
                  <tr>
            <td class="right">
              <em>public</em>                                          <em>void</em>            </td>
            <td>
              <code><b>getTrace (  )</b></code>
                                        </td>
          </tr>
                  <tr>
            <td class="right">
              <em>public</em>                                          <em>void</em>            </td>
            <td>
              <code><b>getTraceAsString (  )</b></code>
                                        </td>
          </tr>
                  <tr>
            <td class="right">
              <em>public</em>                                          <em>void</em>            </td>
            <td>
              <code><b>__clone (  )</b></code>
                                        </td>
          </tr>
                  <tr>
            <td class="right">
              <em>public</em>                                          <em>void</em>            </td>
            <td>
              <code><b>__toString (  )</b></code>
                                        </td>
          </tr>
              </tbody>
      </table>

  <a name="sec-methods"></a>
  <h2>Methods</h2>
  <a name='method_detail'></a>
          
      <a name="methoddelete" id="delete"><!-- --></a>

    <h3>delete</h3>

    <div class="method-signature">
      bool
      delete(
                                  
          $observer
                            ,           [string
          $name
           = null]              )
    </div>

    <p>Remove an exception handler</p>
          <h4>Parameters:</h4>
      <table class="detail">
        <thead>
          <tr>
            <th>Name</th>
            <th>Type</th>
            <th class="desc">Description</th>
          </tr>
        </thead>
        <tbody>
                      <tr>
              <td><code>$observer</code></td>
              <td><em><a href="../Madoqua_Observer/Exception/Madoqua_Observer_Interface_Exception.html">Madoqua_Observer_Interface_Exception</a></em></td>
              <td>
                              </td>
            </tr>
                      <tr>
              <td><code>$name</code></td>
              <td><em>string</em></td>
              <td>
                              </td>
            </tr>
                  </tbody>
      </table>
    
        

    
    
    
        <a name="method__construct" id="__construct"><!-- --></a>

    <h3>__construct</h3>

    <div class="method-signature">
      Madoqua_Exception_Abstract
      __construct(
                                  string
          $message
                            ,           [int
          $code
           = 0]              )
    </div>

    <p>Set the code &amp; message</p>
          <h4>Parameters:</h4>
      <table class="detail">
        <thead>
          <tr>
            <th>Name</th>
            <th>Type</th>
            <th class="desc">Description</th>
          </tr>
        </thead>
        <tbody>
                      <tr>
              <td><code>$message</code></td>
              <td><em>string</em></td>
              <td>
                              </td>
            </tr>
                      <tr>
              <td><code>$code</code></td>
              <td><em>int</em></td>
              <td>
                              </td>
            </tr>
                  </tbody>
      </table>
    
        

          <h4>Redefinition of:</h4>
      <table class="detail">
        <thead>
          <tr>
            <th>Method</th>
            <th class="desc">Description</th>
          </tr>
        </thead>
        <tbody>
          <tr>
            <td><code>Exception::constructor __construct ( [$message = ], [$code = ] )</code></td>
            <td>
                          </td>
          </tr>
        </tbody>
      </table>
    
    
    
        <a name="methodhandle" id="handle"><!-- --></a>

    <h3>handle</h3>

    <div class="method-signature">
      void
      handle(
      )
    </div>

    <p>Proxy to notify</p>
    
        

    
    
    
        <a name="methodnotify" id="notify"><!-- --></a>

    <h3>notify</h3>

    <div class="method-signature">
      void
      notify(
      )
    </div>

    <p>Push the exception out for handling</p>
    
        

    
    
    
        <a name="methodregister" id="register"><!-- --></a>

    <h3>register</h3>

    <div class="method-signature">
      mixed|<a href="../Madoqua_Exception/Madoqua_Exception_Abstract.html">Madoqua_Exception_Abstract</a>|false
      register(
                                  
          $observer
                            ,           [string
          $name
           = null]              )
    </div>

    <p>Register an exception handler</p>
          <h4>Parameters:</h4>
      <table class="detail">
        <thead>
          <tr>
            <th>Name</th>
            <th>Type</th>
            <th class="desc">Description</th>
          </tr>
        </thead>
        <tbody>
                      <tr>
              <td><code>$observer</code></td>
              <td><em><a href="../Madoqua_Observer/Exception/Madoqua_Observer_Interface_Exception.html">Madoqua_Observer_Interface_Exception</a></em></td>
              <td>
                              </td>
            </tr>
                      <tr>
              <td><code>$name</code></td>
              <td><em>string</em></td>
              <td>
                              </td>
            </tr>
                  </tbody>
      </table>
    
        

    
    
    
  
<p class="notes">
  Located in <a class="field" href="_Exception---Abstract.php.html">/Exception/Abstract.php</a> 
  [<span class="field">line 19</span>]
</p>

                <div class="credit">
                  Documentation generated on Fri, 16 Jan 2009 10:14:35 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.2</a>
                </div>
              </td>
            </tr>
          </table>
        </td>
      </tr>
    </table>
  </body>
</html>